README.txt
John G. Bullock (john@johnbullock.org)
Kelly Rader (kelly.rader@yale.edu)
2021 February 28


This file provides notes on the use of replication files associated with

    Bullock, John G., and Kelly Rader. 2021. "Response Options and the 
    Measurement of Political Knowledge." Forthcoming in the British Journal 
    of Political Science.


To generate all data-based figures and tables in the article, run 
createAll.sh (a bash script, for Mac and Linux) or createAll.bat (for 
Windows). We have tested createAll.bat, not createAll.sh.

Some of the R files create multiple tables or figures. For example, 
"R/Table_1.tex" creates "float_output/Table_1.tex", which contains LaTeX 
versions of both Table 1 and Table A14.

All of the code used to generate figures and tables is R code. To run the  
code, you will need the "boot", "car", "dplyr", "here", "Hmisc", "ipumsr", 
"ipumsr", "lmtest", "magrittr", "purrr", "readr", "readxl", "survey", and 
"tibble" packages.
    You will also need the "Bullock" package, which is available from GitHub.
Run "devtools::install_github("jbullock35/Bullock", build_vignettes = TRUE)"
to install it.

The following devtools::session_info() information, produced after running 
float_code/Table_2.R, may also be useful:

> devtools::session_info()
- Session info -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 setting  value                       
 version  R version 4.0.2 (2020-06-22)
 os       Windows 10 x64              
 system   x86_64, mingw32             
 ui       unknown                     
 language (EN)                        
 collate  English_United States.1252  
 ctype    English_United States.1252  
 tz       America/Chicago             
 date     2021-02-28                  

- Packages -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 package      * version date       lib source        
 abind          1.4-5   2016-07-21 [1] CRAN (R 4.0.0)
 AER            1.2-9   2020-02-06 [1] CRAN (R 4.0.0)
 assertthat     0.2.1   2019-03-21 [1] CRAN (R 4.0.0)
 backports      1.2.1   2020-12-09 [1] CRAN (R 4.0.3)
 base64enc      0.1-3   2015-07-28 [1] CRAN (R 4.0.0)
 blob           1.2.1   2020-01-20 [1] CRAN (R 4.0.2)
 boot         * 1.3-25  2020-04-26 [2] CRAN (R 4.0.2)
 Bullock      * 2.4.0   2021-02-21 [1] local         
 callr          3.5.1   2020-10-13 [1] CRAN (R 4.0.3)
 car          * 3.0-10  2020-09-29 [1] CRAN (R 4.0.2)
 carData        3.0-4   2020-05-22 [1] CRAN (R 4.0.0)
 cellranger     1.1.0   2016-07-27 [1] CRAN (R 4.0.0)
 checkmate      2.0.0   2020-02-06 [1] CRAN (R 4.0.2)
 cli            2.3.0   2021-01-31 [1] CRAN (R 4.0.3)
 cluster        2.1.0   2019-06-19 [2] CRAN (R 4.0.2)
 colorspace     1.4-1   2019-03-18 [1] CRAN (R 4.0.2)
 crayon         1.4.1   2021-02-08 [1] CRAN (R 4.0.3)
 curl           4.3     2019-12-02 [1] CRAN (R 4.0.0)
 data.table     1.13.6  2020-12-30 [1] CRAN (R 4.0.3)
 DBI            1.1.1   2021-01-15 [1] CRAN (R 4.0.3)
 desc           1.2.0   2018-05-01 [1] CRAN (R 4.0.0)
 devtools       2.3.2   2020-09-18 [1] CRAN (R 4.0.2)
 digest         0.6.27  2020-10-24 [1] CRAN (R 4.0.3)
 dplyr        * 1.0.4   2021-02-02 [1] CRAN (R 4.0.3)
 ellipsis       0.3.1   2020-05-15 [1] CRAN (R 4.0.2)
 forcats        0.5.1   2021-01-27 [1] CRAN (R 4.0.3)
 foreign        0.8-80  2020-05-24 [2] CRAN (R 4.0.2)
 Formula      * 1.2-4   2020-10-16 [1] CRAN (R 4.0.3)
 fs             1.5.0   2020-07-31 [1] CRAN (R 4.0.2)
 generics       0.1.0   2020-10-31 [1] CRAN (R 4.0.3)
 ggplot2      * 3.3.3   2020-12-30 [1] CRAN (R 4.0.3)
 glue           1.4.2   2020-08-27 [1] CRAN (R 4.0.2)
 gridExtra      2.3     2017-09-09 [1] CRAN (R 4.0.2)
 gtable         0.3.0   2019-03-25 [1] CRAN (R 4.0.2)
 haven          2.3.1   2020-06-01 [1] CRAN (R 4.0.2)
 here         * 1.0.1   2020-12-13 [1] CRAN (R 4.0.2)
 Hmisc        * 4.4-2   2020-11-29 [1] CRAN (R 4.0.3)
 hms            0.5.3   2020-01-08 [1] CRAN (R 4.0.0)
 htmlTable      2.0.1   2020-07-05 [1] CRAN (R 4.0.2)
 htmltools      0.5.1.1 2021-01-22 [1] CRAN (R 4.0.3)
 htmlwidgets    1.5.3   2020-12-10 [1] CRAN (R 4.0.3)
 ivpack         1.2     2014-10-25 [1] CRAN (R 4.0.0)
 jpeg           0.1-8.1 2019-10-24 [1] CRAN (R 4.0.0)
 knitr          1.31    2021-01-27 [1] CRAN (R 4.0.3)
 lattice      * 0.20-41 2020-04-02 [2] CRAN (R 4.0.2)
 latticeExtra   0.6-29  2019-12-19 [1] CRAN (R 4.0.2)
 lifecycle      0.2.0   2020-03-06 [1] CRAN (R 4.0.0)
 lmtest       * 0.9-38  2020-09-09 [1] CRAN (R 4.0.2)
 magrittr     * 1.5     2014-11-22 [1] CRAN (R 4.0.2)
 Matrix       * 1.2-18  2019-11-27 [2] CRAN (R 4.0.2)
 memoise        1.1.0   2017-04-21 [1] CRAN (R 4.0.0)
 mitools        2.4     2019-04-26 [1] CRAN (R 4.0.2)
 multiwayvcov   1.2.3   2016-05-05 [1] CRAN (R 4.0.0)
 munsell        0.5.0   2018-06-12 [1] CRAN (R 4.0.2)
 nnet           7.3-14  2020-04-26 [2] CRAN (R 4.0.2)
 openxlsx       4.2.3   2020-10-27 [1] CRAN (R 4.0.3)
 pillar         1.4.7   2020-11-20 [1] CRAN (R 4.0.3)
 pkgbuild       1.2.0   2020-12-15 [1] CRAN (R 4.0.3)
 pkgconfig      2.0.3   2019-09-22 [1] CRAN (R 4.0.0)
 pkgload        1.1.0   2020-05-29 [1] CRAN (R 4.0.2)
 png            0.1-7   2013-12-03 [1] CRAN (R 4.0.0)
 prettyunits    1.1.1   2020-01-24 [1] CRAN (R 4.0.0)
 processx       3.4.5   2020-11-30 [1] CRAN (R 4.0.3)
 ps             1.3.4   2020-08-11 [1] CRAN (R 4.0.2)
 purrr        * 0.3.4   2020-04-17 [1] CRAN (R 4.0.2)
 R6             2.4.1   2019-11-12 [1] CRAN (R 4.0.0)
 RColorBrewer   1.1-2   2014-12-07 [1] CRAN (R 4.0.0)
 Rcpp           1.0.6   2021-01-15 [1] CRAN (R 4.0.3)
 readxl       * 1.3.1   2019-03-13 [1] CRAN (R 4.0.0)
 remotes        2.2.0   2020-07-21 [1] CRAN (R 4.0.2)
 rio            0.5.16  2018-11-26 [1] CRAN (R 4.0.0)
 rj           * 4.0.1-4 2020-06-06 [1] local         
 rj.gd          4.0.1-3 2020-06-06 [1] local         
 rlang          0.4.10  2020-12-30 [1] CRAN (R 4.0.3)
 rpart          4.1-15  2019-04-12 [2] CRAN (R 4.0.2)
 rprojroot      2.0.2   2020-11-15 [1] CRAN (R 4.0.3)
 rstudioapi     0.13    2020-11-12 [1] CRAN (R 4.0.3)
 sandwich       2.5-1   2019-04-06 [1] CRAN (R 4.0.0)
 scales         1.1.1   2020-05-11 [1] CRAN (R 4.0.2)
 sessioninfo    1.1.1   2018-11-05 [1] CRAN (R 4.0.0)
 stringi        1.5.3   2020-09-09 [1] CRAN (R 4.0.2)
 stringr        1.4.0   2019-02-10 [1] CRAN (R 4.0.0)
 survey       * 4.0     2020-04-03 [1] CRAN (R 4.0.2)
 survival     * 3.1-12  2020-04-10 [2] CRAN (R 4.0.2)
 testthat       3.0.2   2021-02-14 [1] CRAN (R 4.0.4)
 tibble         3.0.6   2021-01-29 [1] CRAN (R 4.0.3)
 tidyr        * 1.1.2   2020-08-27 [1] CRAN (R 4.0.2)
 tidyselect     1.1.0   2020-05-11 [1] CRAN (R 4.0.2)
 usethis        2.0.1   2021-02-10 [1] CRAN (R 4.0.3)
 vctrs          0.3.6   2020-12-17 [1] CRAN (R 4.0.3)
 withr          2.4.1   2021-01-26 [1] CRAN (R 4.0.3)
 xfun           0.21    2021-02-10 [1] CRAN (R 4.0.3)
 zip            2.1.1   2020-08-27 [1] CRAN (R 4.0.2)
 zoo          * 1.8-8   2020-05-02 [1] CRAN (R 4.0.2)
